package com.example;


import com.example.aop.MyInvocationHandler;
import com.example.service.Cal;
import com.example.service.impl.CalImpl;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

@SpringBootTest
public class Main {
    @Test
    public void test(){
        Cal cal = new CalImpl();
        MyInvocationHandler myInvocationHandler = new MyInvocationHandler();
        Cal proxy = (Cal)myInvocationHandler.getBind(cal);
        proxy.add(1,3);
        proxy.sub(3,2);
        proxy.mul(3,5);
        proxy.div(6,2);
    }


}
